# 正常情况下根据 业务流 来写的测试用例，yaml文件也应该要跟py文件分开来写，即不在一个地址目录下
# 按照业务流，纯行为驱动
from py_page.base_page import BasePage


class Business(BasePage):

    file_path = r'C:\PycharmProjects\webUIFrame\busniess\login_business.yaml'

    def user_login(self, account, pwd):
        self.run_steps(self.file_path, "user_login", account=account, pwd=pwd)

    def goto_goods_detail_page_business(self, account, pwd, index):
        self.run_steps(self.file_path, "goto_goods_detail_page", account=account, pwd=pwd, index=index)